/* Liviu Patrasco & Holly Beach
 * TCSS422 Project 1: Web Crawler
 * February 6, 2012
 */

import java.util.LinkedList;
import java.util.List;

/**
 * A Page contains fields for text data, source of the text data
 * and time for parsing data.
 * @author Liviu and Holly
 *
 */
public class Page {
	private List<String> links = new LinkedList<String>();
	private String text;
	private long parse_time = 0;
	protected String base_url;
	
	public Page(final String the_text){
		text = the_text;
	}
	
	public Page(final String the_text, final List<String> the_links, long time) {
		text = the_text;
		links.addAll(the_links);
		parse_time = time;
	}

	/**
	 * @return the text (all parsed page in one string)
	 */
	protected String getText() {
		return text;
	}

	/**
	 * @return the links
	 */
	protected List<String> getLinks() {
		return links;
	}
	
	/**
	 * 
	 * @return parse time for this page
	 */
	protected long getParseTime(){
		return parse_time;
	}
}
